import request from"@/pages/tools/request.js";
const login=(data)=>{
	return request.post("/login/carShopLogin",data);
}

const checkLogin=()=>{
    return request.get("/Login/GetCurrentCarShopInfo");
}
const Get_carshop=(data)=>{
	return request.get("/SysCarShops/Get_carshop");
}
//添加员工
const Add_employ=(data)=>{
	return request.post("/Employees/Add",data);
}
//获取汽车店员工消息
const Get_employ=(data)=>{
	return request.get("/Employees/Get_employ",data);
}
//查询VIP
const Get_Vip_carShop=(data)=>{
	return request.get("/Vips/Get_Vip_carShop",data);
}
//添加Vip
const Add_vip=(data)=>{
	return request.post("/Vips/Add",data);
}

//查询单个商品
const get_qcd_product=(data)=>{
	return request.get("/SysProduct/Detail",data);
}

const getCarShopByAccount=()=>{
    return request.get("/SysCarShops/GetCarShopByAccount");
}

//查询统计和订单
const Get_orders=(data)=>{
	return request.get("/CustomerOrders/Get_orders",data);
}

export{login,checkLogin,getCarShopByAccount,Get_carshop,Add_employ,Get_employ,Get_Vip_carShop,Add_vip,get_qcd_product,Get_orders}